from django.conf.urls.defaults import *
from netbook import settings
import os

# Uncomment the next two lines to enable the admin:
# from django.contrib import admin
# admin.autodiscover()

urlpatterns = patterns('',
    # Uncomment the admin/doc line below to enable admin documentation:
    # (r'^admin/doc/', include('django.contrib.admindocs.urls')),

    # Uncomment the next line to enable the admin:
    # (r'^admin/', include(admin.site.urls)),
    (r'^site_media/(?P<path>.*)$','django.views.static.serve',{'document_root':settings.STATIC_PATH}),
)

urlpatterns += patterns('netbook.auth.auth_views',
    (r'^auth/login/$', 'login'),
    (r'^auth/logout/$', 'logout'),
)
    
urlpatterns += patterns('netbook.member.member_views',
    (r'^user/register/$', 'register'),
)

urlpatterns += patterns('netbook.note.note_views',
    (r'^$|^index/$|^note/public/$', 'publicNoteList'),
    (r'^note/my/$', 'myNoteList'),
    (r'^note/(\d*)/$', 'note'),
    (r'^note/publiclist/$', 'publiclist'),
)
